home *** CD-ROM | disk | FTP | other *** search
Wrap
-- card: 17729 from stack: in.979 -- bmap block id: 22655 -- flags: 0000 -- background id: 2295 -- name: keyboard ----- HyperTalk script ----- ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû Script info for this card. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû HANDLERS: idle,openCard,arrowKey FUNCTIONS: Size of script: 611 chars. 1/14/89 ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû on idle if visible of field "Mouse Loc2" is true then put the mouseLoc into field "Mouse Loc2" end if exit idle end idle on openCard put empty into card field "Test" put script of field "sndField" into fred if fred is empty then answer "Oops, no sound resources found." with "Sorry" else put fred into card field "Music" set name of bkgnd btn id 72 to "Prev Card:" && short name of prev card set name of bkgnd btn id 73 to "Next Card:" && short name of next card pass openCard end openCard on arrowKey this if this is "right" then doMenu "Cover" else pass arrowKey end arrowKey -- part 1 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=70 top=78 right=155 bottom=435 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 204 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp global keysnd get the clickloc put item 1 of it into noteNum put 1 + (noteNum - 52) DIV 13 into noteNum put "36 38 40 41 43 45 47 48 50 52 53 55 57 59 60 62" && "64 65 67 69 71 72 74 76 77 79 81 83" into keymap put word noteNum of keymap into realNote play keysnd realnote & "q" if notenum < 15 then put 220 - ((noteNum-17)*3) -10 into noteLocY else put 204 - ((noteNum-17)*3) -10 into noteLocY end if show button Note at 372, noteLocY --put "play" && keysnd realnote & "q" into card field test end mouseUp -- part 2 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=355 top=235 right=263 bottom=389 -- title width / last selected line: 0 -- icon id / first selected line: 12694 / 12694 -- text alignment: 1 -- font id: 204 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Note -- part 3 (button) -- low flags: 00 -- high flags: A004 -- rect: left=382 top=284 right=302 bottom=436 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 204 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Return ----- HyperTalk script ----- on mouseUp visual effect checkerboard to black pop card end mouseUp -- part 4 (field) -- low flags: 00 -- high flags: 0002 -- rect: left=70 top=164 right=181 bottom=309 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 14 -- part name: Test -- part 5 (field) -- low flags: 01 -- high flags: 0007 -- rect: left=70 top=181 right=281 bottom=309 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 14 -- part name: Music ----- HyperTalk script ----- on mouseUp global keysnd put the optionkey into keystate if the selection is empty then set lockText of the target to false click at (first item of the rect of the target), (second item of the clickLoc) click at (last item of the rect of the target)+9, (second item of the clickLoc) with shiftKey put the selection into keysnd click at 0,0 set lockText of the target to true end if put "play" && quote & keysnd & quote into PlaySomething put PlaySomething into card field "Test" do (card field "Test") pass mouseUp end mouseUp -- part 6 (button) -- low flags: 00 -- high flags: C004 -- rect: left=403 top=311 right=327 bottom=455 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Sounds ----- HyperTalk script ----- on mouseUp set hilite of me to true doMenu short name of me end mouseUp -- part 7 (button) -- low flags: 00 -- high flags: 8000 -- rect: left=217 top=283 right=301 bottom=286 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 204 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Î Í Ï ----- HyperTalk script ----- on mouseUp get trunc(((item 1 of the clickloc) - (item 1 of the rect of me)) / (((item 3 of the rect of me) - (item 1 of the rect of me)) / 3)) if it is 0 then scroll L go prev card else if it is 1 then scroll D doMenu "Home" else if it is 2 then scroll R doMenu "Cover" end if end mouseUp -- part contents for background part 56 ----- text ----- keyboard -- part contents for background part 78 ----- text ----- Prev Card: the sound sampler -- part contents for background part 79 ----- text ----- Next Card: Panic Spredsheet -- part contents for card part 5 ----- text ----- 0 1 2 3 4 5 6 7 8 9 A B Boing C Car Cat Click Coming Crashbang Crunch Cucu D Dog DoorClose DoorOpen Drip E Evil Laugh F Frog G Get Lost Gunshot H Harpsichord Hello Honk I J K Knock L M Metal Falling N O P Q R S Silence SpinCylinder Static Step Switch T U Uuh V W X Y Yeow Z -- part contents for background part 68 ----- text ----- 237,137 -- part contents for background part 82 ----- text ----- Free Space: -- part contents for background part 83 ----- text ----- 50.19 K -- part contents for background part 67 ----- text ----- Mouse Location: